/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package commerceone;

import javax.swing.JFrame;
import javax.swing.JPanel;

/**
 *
 * @author rotarito
 */
public class Controller_interaction {
    JFrame window;
    public Controller_interaction(JFrame window)
    {
    this.window=window;
    }
    public void setview(JPanel panel)
    {
      this.window.setContentPane(panel);
         this.window.validate();
         this.window.repaint();  
    }
    public void setFrame(JFrame frame)
    {frame.setVisible(true);}
    public void fermer(JFrame frame)
    {
        frame.dispose();
    }
}
